<?php

    include '../../Include/IncludeLogin.php';

    $plantillaINFO = new Panel( "../View/Html/InfoUsuario.html" );

    if( $_GET['USR_ID'] != $_SESSION['USR_ID'] ){
        $plantillaINFO->add( "ELIMINAR" , "<a href=\"#\" onclick=\"confirmarEliminarCliente('{USR_ID}')\">Eliminar |</a>" );
    }
     try {
                $clienteLogica = FabricaComando::crearConsultarCliente( $_GET['USR_ID'] );
                } catch ( ProveedorLogicaException $Ex ) {
                new ExceptionHandler( $Ex );
            }

    $cliente = $clienteLogica->hacer();
    $plantillaINFO->add( $cliente->toArray() );
    $plantillaINFO->show();

?>